const fs=require('fs')
const data='Hello,Node.js!'
fs.writeFile('./output.txt',date,err=>{
    if(err){
        console.log(err);
    }else{
        console.log('文件写入成功');
    }
})